<template lang="">
    <div>
        索引：
        <input v-model='indexs' />
        {{name}}
        值：
        <input v-model='arr[indexs]' />
        <div v-for="(item,index) in arr " :key='index'>
           {{item}}{{index}}
        </div>
        <input v-model='name' />
        <div v-show='name == 1'>show</div>
        <div v-if='name == 1' >这是if</div>
        <div v-else-if='name == 2' >这是elas if</div>
        <div v-else>这是elas</div>


    </div>
</template>
<script>
export default {
    data() {

        return {
            name: 1,
            indexs: 0,
            arr: [
                '马思恩0',
                '马思恩1',
                '马思恩2',
                '马思恩3',
                '马思恩4',
                '马思恩5'
            ]
        }

    }
}
</script>
<style setup></style>